package com.main.pojo;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name = "CHARTS")
public class Charts {

	private int Id;
	private Date startDate;
	private Date endDate;
//	private List<ChartsDetail> chartsDetail;
	private String chartsType;
	private String active;

	@Id
	@Column(name = "Id")
	public int getId() {
		return Id;
	}

	public void setId(int id) {
		Id = id;
	}

	@Column(name = "StartDate")
	public Date getStartDate() {
		return startDate;
	}

	public void setStartDate(Date startDate) {
		this.startDate = startDate;
	}

	@Column(name = "EndDate")
	public Date getEndDate() {
		return endDate;
	}

	public void setEndDate(Date endDate) {
		this.endDate = endDate;
	}

//	@OneToMany(fetch = FetchType.EAGER, mappedBy = "charts")
//	@OneToMany(fetch = FetchType.EAGER,cascade=CascadeType.ALL)
//    @JoinColumn(name="ChartsId")
//	public List<ChartsDetail> getChartsDetail() {
//		return chartsDetail;
//	}
//
//	public void setChartsDetail(List<ChartsDetail> chartsDetail) {
//		this.chartsDetail = chartsDetail;
//	}

	@Column(name="ChartsType")
	public String getChartsType() {
		return chartsType;
	}

	public void setChartsType(String chartsType) {
		this.chartsType = chartsType;
	}

	@Column(name="Active")
	public String getActive() {
		return active;
	}

	public void setActive(String active) {
		this.active = active;
	}

	
}
